package com.bear.fastrepair.http.api

import com.bear.fastrepair.entity.ResponseListInfo
import okhttp3.MultipartBody
import retrofit2.http.*

/**
 * 上传API
 */
interface UploadService {
    /**
     * 上传文件
     * @param path String
     * @param params Map<String, RequestBody>
     * @return ResponseInfo
     */
    @Multipart
    @POST("mobile/file/static")
    suspend fun fileUpload(
        @Part files: List<MultipartBody.Part>
    ): ResponseListInfo
}